package com.shou;

import com.dtflys.forest.springboot.annotation.ForestScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.shou.config.ExternalConfigInitializer;
import lombok.extern.slf4j.Slf4j;


@SpringBootApplication
@Configurable
@ForestScan(basePackages = "com.shou.trigger.job") // 确保指定了正确的包路径
@Slf4j
public class Application {

    public static void main(String[] args){
        SpringApplication application = new SpringApplication(Application.class);
        // 读取外部配置文件
        application.addInitializers(new ExternalConfigInitializer());
        application.run(args);
        log.info("Application started success");
    }

}
